home *** CD-ROM | disk | FTP | other *** search
- /* $VER: HTMLEXT Modul: golded.mod Rev.020 © by Juan Manuel Wehrli 1999 - 2000
- */
- if ~show("L",rexxtricks.library) then do
- call addlib("rexxtricks.library",0,-30,0)
- end
-
- PARSE ARG Befehl Option
- OPTIONS RESULTS
- ADDRESS COMMAND
-
- if Befehl = QUIT then do
- if show('P',"GOLDED.1") then do
- ADDRESS GOLDED.1 QUIT ALL
- end
- end
-
- if Befehl = OPEN then do
- winopts = GETENV('.htmlext.edwin')
- if ~show('P',"GOLDED.1") then do
- 'golded:ed'
- "sys:rexxc/WaitForPort GOLDED.1"
- 'WINDOW 'winopts
- end
- ADDRESS GOLDED.1
- OPEN Option
- 'WINDOW 'winopts
- end
-
- if Befehl = OPENNEW then do
- winopts = GETENV('.htmlext.edwin')
- if ~show('P',"GOLDED.1") then do
- 'golded:ed'
- "sys:rexxc/WaitForPort GOLDED.1"
- ADDRESS GOLDED.1
- 'WINDOW 'winopts
- OPEN Option
- exit
- end
- ADDRESS GOLDED.1
- OPEN NEW Option
- 'WINDOW 'winopts
- end
-
- if Befehl = BLOCKSAVE then do
- if show('P',"GOLDED.1") then do
- ADDRESS GOLDED.1 SAVE BLOCK NAME Option
- end
- end
-
- if Befehl = ICONIFY then do
- if show('P',"GOLDED.1") then do
- ADDRESS GOLDED.1 SCREEN ICONIFY
- end
- end
-
- if Befehl = UNICONIFY then do
- if show('P',"GOLDED.1") then do
- ADDRESS GOLDED.1 SCREEN FRONT
- end
- end
-
- if Befehl = INSERT then do
- if show('P',"GOLDED.1") then do
- ADDRESS GOLDED.1
- OPEN Option INSERT
- end
- end
-
- if Befehl = PASTE then do
- if show('P',"GOLDED.1") then do
- address command 'htmlext:c/MagicClip PUT ' || Option
- ADDRESS GOLDED.1
- CLIP PASTE
- end
- end
-
- if Befehl = FIND then do
- if show('P',"GOLDED.1") then do
- ADDRESS GOLDED.1
- 'FIND STRING 'Option' FIRST'
- end
- end
-
-
- if Befehl = MFIND then do
- if open("f","t:htmlext.find",r) then do
- do while ~EOF("f")
- file = readln("f")
- if ~show('P',"GOLDED.1") then do
- 'golded:ed 'file
- end
- else do
- ADDRESS GOLDED.1 'OPEN 'file' NEW'
- end
- ADDRESS GOLDED.1
- 'FIND STRING 'Option' FIRST'
- ADDRESS COMMAND
- 'wait 1'
- end
- call close("f")
- 'delete t:htmlext.find >NIL:'
- end
- end
-
-